<template>
  <div><h1>Attr</h1>
  <div>
      <MyInput class="form-control" placeholder="请输入" @input="fnInput" @focus="fnFocus" v-model="name"/>
  </div>
  </div>
</template>

<script>
import MyInput from '@/components/Input'
export default {
    components:{
        MyInput
    },
    data(){
return{
    name:''
}
    },
    methods:{
        fnInput(e){
            console.log(e.target.value)
        },
        fnFocus(){
            console.log('focus')
        }
    }
}
</script>